local modulename = "abtestingInit"
local _M = {}

_M._VERSION = '0.0.1'

_M.redisConf = {
    ["host"]                = ngx.var.redis_host,
    ["port"]                = ngx.var.redis_port,
    ["poolsize"]            = ngx.var.redis_pool_size,
    ["idletime"]            = ngx.var.redis_keepalive_timeout ,
    ["timeout"]             = ngx.var.redis_connect_timeout,
    ["dbid"]                = ngx.var.redis_dbid,
}

_M.divtypes = {
    ["arg_partyid"]         = 'partyidParser'
}

_M.prefixConf = {
    ["policyLibPrefix"]     = 'ab:policies',
    ["runtimeInfoPrefix"]   = 'ab:runtimeInfo',
    ["domainname"]          = ngx.var.domain_name,
}

_M.divConf = {
    ["default_backend"]     = ngx.var.default_backend;
    ["shdict_expire"]       = 60, --60s 读Redis间隔时间
}

_M.fields = {
    ['divModulename']       = 'divModulename',
    ['divDataKey']          = 'divDataKey',
    ['userInfoModulename']  = 'userInfoModulename',
    ['divtype']             = 'divtype',
    ['divdata']             = 'divdata',
    ['idCount']             = 'idCount',
    ['divsteps']            = 'divsteps',
    ['switch']              = 'switch'
}

return _M
